home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-01-01 | 2.2 KB | 88 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="5"
- "COUNT"="5"
- "UIPATH"="Appearance\Start menu\Common"
- "NAME"="Clear Items #1"
- "VERSION"="1.43"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Clear "Run..." commands"
- "TEXT 2"="Clear found files ("Find" - "Files")"
- "TEXT 3"="Clear found computers ("Find" - "Computer")"
- "TEXT 4"="Clear "Recent Documents""
- "TEXT 5"="Clear all of the above"
- "DESCRIPTION 1"="Click an item to be cleared."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- 'Declaration of some constants
- sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU\"
- sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU\"
- sP3="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FindComputerMRU\"
- sP4="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\"
- 'HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Prnportsmru" 'TODO... Some day... After Y2k
-
- bShowMessage=true
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- Select Case ElementIndex
- Case 1 'run
-
- i=RegEnumValues(sp1)
- for l=1 to i
- Call RegDeleteValue(sp1 & RegEnumElement(l))
- Next
-
- Case 2'files
-
- i=RegEnumValues(sp2)
- for l=1 to i
- Call RegDeleteValue(sp2 & RegEnumElement(l))
- Next
-
- Case 3'computers
-
- i=RegEnumValues(sp3)
- for l=1 to i
- Call RegDeleteValue(sp3 & RegEnumElement(l))
- Next
-
- Case 4'Docs
-
- i=RegEnumValues(sp4)
- for l=1 to i
- Call RegDeleteValue(sp4 & RegEnumElement(l))
- Next
-
- Case 5'CLEAR ALL
- bShowMessage=false
- Call Plugin_Apply(1,0)
- Call Plugin_Apply(2,0)
- Call Plugin_Apply(3,0)
- Call Plugin_Apply(4,0)
- bShowMessage=true
-
- end Select
-
-
- if bShowMessage=true then
- Call MsgInformation("Cleared, please restart your PC so the changes can take effect.")
- Call Restart
- end if
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- End Sub
-